import request from '@/utils/request'

// 查询最终受益人信息列表
export function listPayEaseECertificateContacts(query) {
  return request({
    url: '/ecs/payEaseECertificateContacts/list',
    method: 'get',
    params: query
  })
}

// 查询最终受益人信息详细
export function getPayEaseECertificateContacts(id) {
  return request({
    url: '/ecs/payEaseECertificateContacts/' + id,
    method: 'get'
  })
}

// 新增最终受益人信息
export function addPayEaseECertificateContacts(data) {
  return request({
    url: '/ecs/payEaseECertificateContacts',
    method: 'post',
    data: data
  })
}

// 修改最终受益人信息
export function updatePayEaseECertificateContacts(data) {
  return request({
    url: '/ecs/payEaseECertificateContacts',
    method: 'put',
    data: data
  })
}

// 删除最终受益人信息
export function delPayEaseECertificateContacts(id) {
  return request({
    url: '/ecs/payEaseECertificateContacts/' + id,
    method: 'delete'
  })
}
